package com.it.a01oopextendsdemo1;

public class Animal {

    //权限修饰符：
    //private：子类无法访问了
    //私有：只能在本类中访问
    public void eat(){
        System.out.println("吃东西");
    }

    public void drink(){
        System.out.println("喝水");
    }

}
